package cn.jia.spring4.aspect;

import org.aspectj.lang.annotation.Pointcut;

/**
 * AspectJ创建的切面类，不同于springAOP的切面类，spring切面类由spring创建，二AspectJ切面类由aspect创建
 * AspectJ切面比spring AOP更强大
 * Created by jia on 2018/4/3.
 */
/*public aspect CriticAspect {
    public CriticAspect() {
    }
    pointcut performance(): execution(* perform(..));
    afterReturning() :performance() {
        System.out.println(criticismEngine.getCriticism());
    }

    private CriticismEngine criticismEngine;
    public void setCriticismEngine(CriticismEngine criticismEngine) {
        this.criticismEngine = criticismEngine;
    }
}*/
